package com.dataex.dbtool;

public class Ref<T> {
	
	public int c= 1;
	public T v = null;
	
	public Ref<T> setV(T v){
		this.v = v;
		return  this;
	}
	
	public Ref<T> setC(int c){
		this.c = c;
		return  this;
	}
	
	public static Ref<String> getStrO(){
		return new Ref<String>();
	}
	
	public static Ref<Integer> getIntO(){
		return new Ref<Integer>();
	}
	
	public static Ref<Long> getLngO(){
		return new Ref<Long>();
	}
	
	public static Ref<String> getStrO(String v){
		return new Ref<String>().setV(v);
	}
	
	public static Ref<Integer> getIntO(int v){
		return new Ref<Integer>().setV(v);
	}
	
	public static Ref<Long> getLngO(long v){
		return new Ref<Long>().setV(v);
	}
}
